{block name=body}
<table align="left"  border="1" cellpadding="2" cellspacing="2" id="tableNo" clsss="waiterdiv" >
  <tr>
    <td align="center" class="table1" colspan="9" valign="top"><b>Order Master</b></td>
  <tr>
    <td class="table1"><b>Add</b></td>
    <td class="table1" ><b>Print Bill</b></td>
    <td class="table1"><b>Table</b></td>
    <td class="table1"><b>Waiter</b></td>
    <td class="table1" align="right"><b>Items</b></td>
    <td class="table1" align="right"><b>Amount</b></td>
    <td class="table1"><b>Start</b></td>
    <td class="table1"><b>Last Order</b></td>
			
		</tr>
		{section name="sec" loop=$joinResult}
		<tr>
		  <td class="table2" align="center"><a href="window8.php?waiter={$joinResult[sec].waiterId}&table={$joinResult[sec].tableId}&tablePart={$joinResult[sec].tablePart}" target="_top">Add</td>
		  <td class="table2" align="center"><a href="amountListPdf1.php?waiterId={$joinResult[sec].waiterId}&tableId={$joinResult[sec].tableId}&tablePart={$joinResult[sec].tablePart}&orderId={$joinResult[sec].orderId}" target="_blank">Print</td>
		  <td class="table2" align="center">{$joinResult[sec].tableId}{$joinResult[sec].tablePart}</td>
		  <td class="table2" align="center">{$joinResult[sec].waiterName}</td>
                  <td class="table2" align="right">{$joinResult[sec].totalItem}</td>
		  <td class="table2" align="right">{$joinResult[sec].totalamount}</td>
		  <td class="table2" align="center">{$joinResult[sec].startTime|date_format:"%H:%M"}</td>
		  <td class="table2" align="center">{$joinResult[sec].lastordertime|date_format:"%H:%M"}</td>
		  </tr>
		{/section}
</table>
{/block}